package br.medmark.servico;

import java.util.List;

import br.com.medmark.model.hibernate.AreaAtuacao;
import br.com.medmark.model.hibernate.Estado;
import br.com.medmark.model.hibernate.Profissao;
import br.com.medmark.model.hibernate.dao.UtilDAOImpl;



public class ServicoUtil {
	
	
	private static ServicoUtil servicoUtil = null;
	private UtilDAOImpl utilDAO = UtilDAOImpl.getInstance();
	private ServicoUtil(){
		
	}
	
	public static ServicoUtil getInstance(){
		
		if ( servicoUtil == null) {
			servicoUtil = new ServicoUtil();
		}
	
		return servicoUtil;
		
	}
	

	public List<Estado> getEstados(){
		
		
		return utilDAO.getEstados();
	}
	
	public List<Profissao> getProfissoes(){
		
		
		return utilDAO.getProfissoes();
		
	}
	
	public Profissao getProfissao(int codigo){
		
		
		return utilDAO.getProfissao(codigo);
		
	}
	public List<AreaAtuacao> getAreasAtuacao(){
		
		
		return utilDAO.getAreasAtuacao();
		
	}
	
	
	public List<AreaAtuacao> getAreasAtuacao(int codigoProfissao){
		
		return utilDAO.getAreasAtuacao(codigoProfissao);
		
	}
	
		
	
}
